home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXSSSSGGGGIIIISSSSTTTTEEEERRRREEEEOOOO((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666)))) XXXXSSSSGGGGIIIISSSSTTTTEEEERRRREEEEOOOO((((3333XXXX11111111))))
-
-
-
- NNNNAAAAMMMMEEEE
- XSGIStereoQueryExtension, XSGIStereoQueryVersion,
- XSGIQueryStereoMode, XSGISetStereoMode, XSGISetStereoBuffer
- - X SGI stereo functions
-
- SSSSYYYYNNNNTTTTAAAAXXXX
- #include <X11/extensions/SGIStereo.h>
-
- Bool XSGIStereoQueryExtension (
- Display * dpy,
- int * first_event,
- int * first_error);
-
- Status XSGIStereoQueryVersion (
- Display * dpy,
- int * major_version,
- int * minor_version);
-
- int XSGIQueryStereoMode(
- Display * dpy,
- Window win);
-
- Status XSGISetStereoMode (
- Display *dpy,
- Window win,
- unsigned short height,
- unsigned short offset,
- int mode);
-
- Status XSGISetStereoBuffer (
- Display *dpy,
- Window win,
- int buffer);
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- _d_p_y Specifies the connection to the X server.
-
- _f_i_r_s_t__e_v_e_n_t
- Returns the code of the first custom event type
- created by the extension.
-
- _f_i_r_s_t__e_r_r_o_r
- Returns the code of the first custom error defined
- by the extension.
-
- _m_a_j_o_r__v_e_r_s_i_o_n
- Returns major version number for the extension.
-
- _m_i_n_o_r__v_e_r_s_i_o_n
- Returns minor version number for the extension.
-
- _w_i_n Specifies the window on whose screen you want to
-
-
-
- Page 1 (printed 10/3/02)
-
-
-
-
-
-
- XXXXSSSSGGGGIIIISSSSTTTTEEEERRRREEEEOOOO((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666)))) XXXXSSSSGGGGIIIISSSSTTTTEEEERRRREEEEOOOO((((3333XXXX11111111))))
-
-
-
- set or inquire the stereo mode.
-
- _h_e_i_g_h_t
- _o_f_f_s_e_t Specify the height of each stereo buffer, and the
- vertical offset between each stereo buffer.
-
- _m_o_d_e Specifies the stereo mode to be set. Valid values
- are STEREO_OFF (0) to turn off stereo,
- STEREO_BOTTOM (1) to turn on stereo and use the
- bottom half of the screen as the primary buffer,
- STEREO_TOP (2) to turn on stereo and use the top
- half of the screen as the primary buffer.
-
- _b_u_f_f_e_r Identifies which buffer the GL will render to.
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _X_S_G_I_S_t_e_r_e_o_Q_u_e_r_y_E_x_t_e_n_s_i_o_n is used to check whether the X
- server supports the SGI Stereo extension. If the Stereo
- extension is present, this routine will return True. If the
- extension involves additional event types, the base event
- type code is returned in _f_i_r_s_t__e_v_e_n_t. Otherwise, zero is
- returned in _f_i_r_s_t__e_v_e_n_t. If the extension involves
- additional error codes, the base error code is returned in
- _f_i_r_s_t__e_r_r_o_r. Otherwise, zero is returned. If the SGI Stereo
- extension is present, you must still query the individual
- screens to find out if they support the extension, using
- XSGIQueryStereoMode.
-
- _X_S_G_I_S_t_e_r_e_o_Q_u_e_r_y_V_e_r_s_i_o_n is used to get the version number of
- the Stereo extension supported by the X server.
-
- _X_S_G_I_Q_u_e_r_y_S_t_e_r_e_o_M_o_d_e is used to query the server for the
- current stereo mode. If the server supports the SGI Stereo
- extension, but _w_i_n's screen does not, this routine will
- return X_STEREO_UNSUPPORTED (-1). If _w_i_n's screen supports
- the SGI Stereo extension, this routine will return one of
- STEREO_OFF (0), STEREO_BOTTOM (1) or STEREO_TOP (2).
-
- _X_S_G_I_Q_u_e_r_y_S_t_e_r_e_o_M_o_d_e can generate _B_a_d_D_r_a_w_a_b_l_e.
-
- _X_S_G_I_S_e_t_S_t_e_r_e_o_M_o_d_e is used to inform the X server that full-
- screen stereo is being turned on or off. It does not cause
- the actual video timing to change. Rather, if turning on
- stereo, this procedure informs the server that all future X
- rendering is to be duplicated from the primary buffer to the
- secondary buffer. Calling this procedure also causes the
- cursor to be restricted to the primary buffer. Non-stereo GL
- clients will render to the left eye, with the right eye
- cleared to black.
-
- Conversely, if turning off stereo, this procedure informs
-
-
-
- Page 2 (printed 10/3/02)
-
-
-
-
-
-
- XXXXSSSSGGGGIIIISSSSTTTTEEEERRRREEEEOOOO((((3333XXXX11111111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666)))) XXXXSSSSGGGGIIIISSSSTTTTEEEERRRREEEEOOOO((((3333XXXX11111111))))
-
-
-
- the server to return to the normal state, with X rendering
- allowed to the full screen and unrestricting the cursor.
-
- If turning on stereo, _h_e_i_g_h_t and _o_f_f_s_e_t describe the height
- of each stereo buffer and the vertical offset between
- buffers. Typically, these values should be 492 and 532
- respectively. _h_e_i_g_h_t and _o_f_f_s_e_t are ignored if turning off
- stereo.
-
- Stereo is turned off by setting _m_o_d_e to STEREO_OFF (0), and
- is turned on by setting _m_o_d_e to STEREO_BOTTOM or STEREO_TOP
- (1 or 2 respectively). Setting _m_o_d_e to STEREO_BOTTOM causes
- the bottom half of the screen to become the primary buffer,
- setting it to STEREO_TOP causes the top half of the screen
- to become the primary buffer. To switch from using the top
- half of the screen as the primary buffer to using the bottom
- half of the screen as the primary buffer, _X_S_G_I_S_e_t_S_t_e_r_e_o_M_o_d_e
- should first be called with _m_o_d_e set to STEREO_OFF.
-
- NOTE: The application will not normally call this procedure.
- Instead, it will call setmonitor, which will update both the
- X server state and the actual video format.
-
- _X_S_G_I_S_e_t_S_t_e_r_e_o_M_o_d_e can generate _B_a_d_D_r_a_w_a_b_l_e and _B_a_d_R_e_q_u_e_s_t.
-
- _X_S_G_I_S_e_t_S_t_e_r_e_o_B_u_f_f_e_r is used to inform the X server of which
- eye buffer the GL will render to next. The first time it's
- called for a window, it also informs the server that the
- window is a stereo window. _b_u_f_f_e_r identifies which buffer
- to set up. Valid values are STEREO_BUFFER_LEFT and
- STEREO_BUFFER_RIGHT. If stereo mode is turned on (by calling
- XSGISetStereoMode), a call to XSGISetStereoBuffer will cause
- the X server to set the clip and window origin appropriately
- for the GL client. OpenGL applications should call _g_l_X_W_a_i_t_G_L
- before calling XSGISetStereoBuffer, to ensure that all GL
- rendering has completed before switching which buffer to
- render to.
-
- _X_S_G_I_S_e_t_S_t_e_r_e_o_B_u_f_f_e_r can generate _B_a_d_D_r_a_w_a_b_l_e and _B_a_d_V_a_l_u_e
- errors.
-
- Applications calling one of these routines should link with
- libXext.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- setmon, setmonitor, viewport, winset, glXWaitGL
-
-
-
-
-
-
-
-
-
- Page 3 (printed 10/3/02)
-
-
-
-